using System;
using SqlSugar;

namespace SiemensAmd.Mmt.McisDbModel
{
	[SugarTable("TDI_TOOLDATA")]
	public class ToolDataEntity
	{
		[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "dbIdTDIToolData")]
		public long DbIdTDIToolData { get; set; }

		[SugarColumn(ColumnName = "duploNumber")]
		public int DuploNumber { get; set; }

		[SugarColumn(ColumnName = "toolName")]
		public string ToolName { get; set; }

		[SugarColumn(ColumnName = "toolState")]
		public short ToolState { get; set; }

		[SugarColumn(ColumnName = "toolType")]
		public short ToolType { get; set; }

		[SugarColumn(ColumnName = "toolSizeLeft")]
		public short ToolSizeLeft { get; set; }

		[SugarColumn(ColumnName = "toolSizeRight")]
		public short ToolSizeRight { get; set; }

		[SugarColumn(ColumnName = "toolSizeTop")]
		public short ToolSizeTop { get; set; }

		[SugarColumn(ColumnName = "toolSizeDown")]
		public short ToolSizeDown { get; set; }

		[SugarColumn(ColumnName = "toolMonitorType")]
		public short ToolMonitorType { get; set; }

		[SugarColumn(ColumnName = "toolCuttingEdgeCount")]
		public short ToolCuttingEdgeCount { get; set; }

		[SugarColumn(ColumnName = "toolDescription")]
		public string ToolDescription { get; set; }

		[SugarColumn(ColumnName = "toolComment")]
		public string ToolComment { get; set; }

		[SugarColumn(ColumnName = "toolLastUseDate")]
		public DateTime ToolLastUseDate { get; set; }

		[SugarColumn(ColumnName = "toolLastUsedByProgramName")]
		public string ToolLastUsedByProgramName { get; set; }

		[SugarColumn(ColumnName = "toolLastUsedCuttingEdgeNumber")]
		public short ToolLastUsedCuttingEdgeNumber { get; set; }

		[SugarColumn(ColumnName = "toolPresettingTime")]
		public DateTime ToolPresettingTime { get; set; }

		[SugarColumn(ColumnName = "toolBookingTargetId")]
		public Guid ToolBookingTargetId { get; set; }

		[SugarColumn(ColumnName = "toolBookingDate")]
		public DateTime ToolBookingDate { get; set; }

		[SugarColumn(ColumnName = "toolBookingWorkName")]
		public string ToolBookingWorkName { get; set; }

		[SugarColumn(ColumnName = "toolBookingPieceNumber")]
		public int ToolBookingPieceNumber { get; set; }

		[SugarColumn(ColumnName = "toolTeamCenterId")]
		public string ToolTeamCenterId { get; set; }

		[SugarColumn(ColumnName = "toolExternId")]
		public string ToolExternId { get; set; }

		[SugarColumn(ColumnName = "toolTno")]
		public int ToolTno { get; set; }
	}
	[SugarTable("TOOLDATA")]
	public class TOOLDATAEntity
	{
		public string NODEID { get; set; }

		public string CONTAINERID { get; set; }

		public short PLACENO { get; set; }

		public string DATA { get; set; }

		public int LASTACCESSTIME { get; set; }

		[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
		public long DbIdToolData { get; set; }

		public Guid ParentId { get; set; }

		public short ParentType { get; set; }
	}
}
